<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/21
 * Time: 9:32
 */

namespace app\index\controller;


use think\Controller;

class Zzyz extends Controller
{
    public function Zzyz(){
        $str =  "天气真好";
        $phone = '/^[\x{4e00}-\x{9fa5}]{2,10}$|^[a-zA-Z\s]*[a-zA-Z\s]{2,20}$/isu';
        if(preg_match($phone,$str)){
            echo 1;
        }else{
            echo 0;
        }
        return $this->fetch();
    }
}